#!/usr/bin/perl -w

# WARNING file populates warning field for this task
my $pid = ($0 eq 'chronicd') ? $$ : getppid() ;
open (WARNFILE,">/tmp/schedule_task_${pid}.warning") or die "couldn't open warning file : $!\n";
print WARNFILE "Sleeper about to sleep\n"; 
close WARNFILE;

sleep 90;
warn "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\n"; # goes to STDERR (stored in error field for this task)
sleep 90;
print "zzzzzzzzzzzzzzzzzzzzz\n"; # goes to STDOUT (stored in error field for this task)
sleep 25;

exit 0;
